#ifndef ADDBASKETBALLTODBWIDGET_H
#define ADDBASKETBALLTODBWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QComboBox>
#include <QPushButton>
#include <QLineEdit>
#include <QDateEdit>
#include <QTextEdit>



class AddBasketBallToDBWidget : public QWidget
{
    Q_OBJECT
public:
    explicit AddBasketBallToDBWidget(QWidget *parent = 0);

signals:

public slots:
    void OnSubmitBtnClicked();
    void OnG2SubmitBtnClicked();
    void OnSyncBtnClicked();


private:
    bool ItemExists(const QString& VisitingTeam,const QString& HomeTeam, const QString& Result, const QString& Date);
    bool G2ItemExists2Updates(const QString& VisitingTeam,const QString& HomeTeam, const QString& Result, const QString& Date);
    QString GetRecoed_HV3_HVO5(const QString& VisitingTeam,const QString& HomeTeam);
    int GetRecoed_HV_NOHVSORT(const QString& VisitingTeam,const QString& HomeTeam,QStringList *list ,int count);
    int GetRecoed_HO_NOHOSORT(const QString& HomeTeam,QStringList *list ,int count);
    int GetRecoed_VO_NOVOSORT(const QString& VisitingTeam,QStringList *list ,int count);

    QPushButton *m_SubmitBtn;
    QPushButton *m_SyncBtn;
    QDateEdit *m_DateEdit;
    QTextEdit *m_TextEdit;
    QComboBox *m_IsNBACombox;

    QLineEdit *m_G2ResultEdit;
    QLineEdit *m_G2ComparefractionEdit;
    QLineEdit *m_G2MultipleEdit;
    QComboBox *m_G2HTCombox;
    QComboBox *m_G2VTCombox;
    QComboBox *m_G2CompareTypeCombox;
    QDateEdit *m_G2DateEdit;
    QPushButton *m_G2SubmitBtn;




};

#endif // ADDBASKETBALLTODBWIDGET_H
